/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.lanchat.model.data;

import java.io.Serializable;

/**
 * 广播信息类
 * @author MSX008
 */
public class BroadCastMessage implements  Serializable{
    public static final int LOGIN=0;
    public static final int LOGOUT=1;
    public static final int MSG=2;
    private int type;
    private String msg;
    private User user;

    public BroadCastMessage(int t,String msg,User user){
        this.type=t;
        this.msg=msg;
        this.user=user;
    }
    /**
     * @return the type
     */
    public int getType() {
        return type;
    }

    /**
     * @param type the type to set
     */
    public void setType(int type) {
        this.type = type;
    }

    /**
     * @return the msg
     */
    public String getMsg() {
        return msg;
    }

    /**
     * @param msg the msg to set
     */
    public void setMsg(String msg) {
        this.msg = msg;
    }

    /**
     * @return the user
     */
    public User getUser() {
        return user;
    }

    /**
     * @param user the user to set
     */
    public void setUser(User user) {
        this.user = user;
    }

    
}
